{% load static %}
<section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="{% static 'dist/img/user2-160x160.jpg' %}" class="img-circle" alt="User Image">
        </div>
        <div class="pull-left info">
            <p id="left_username">{{ user.name }}</p>
            <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
    </div>
    <!-- search form -->
    <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
            <input type="text" name="q" class="form-control" placeholder="Search...">
            <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
    </form>
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu" data-widget="tree">
        <li class="header">MAIN NAVIGATION</li>
        <li>
            <a href="pages/widgets.html">
                <i class="fa fa-list-ul"></i> <span>主页</span>
            </a>
        </li>
        <li class="treeview" id="code_list">
            <a href="#">
                <i class="fa fa-dashboard"></i> <span>代码发布</span>
                <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
            </a>
            <ul class="treeview-menu">
                <li class="active"><a href="index.html"><i class="fa fa-circle-o"></i>代码更新</a></li>
                <li><a href="index2.html"><i class="fa fa-circle-o"></i>代码回滚</a></li>
            </ul>
        </li>
        <li id="host_list">
            <a href="{% url 'hostList' %}">
                <i class="fa fa-list-ul"></i> <span>主机管理</span>
            </a>
        </li>
        <li id="project_list">
            <a href="{% url 'projectList' %}">
                <i class="fa fa-list-alt"></i> <span>项目管理</span>
            </a>
        </li>
        <li id="command_list">
            <a href="pages/widgets.html">
                <i class="fa  fa-bug"></i> <span>命令管理</span>
            </a>
        </li>
        <li id="cron_list">
            <a href="pages/widgets.html">
                <i class="fa fa-file-text-o"></i> <span>定时任务</span>
            </a>
        </li>
        <li id="init_list">
            <a href="{% url 'initList' %}">
                <i class="fa  fa-list-ol"></i> <span>初始化</span>
            </a>
        </li>
        <li id="user_list">
            <a href="{% url 'userList' %}">
                <i class="fa fa-users"></i> <span>用户列表</span>
            </a>
        </li>
    </ul>
</section>